package com.albaba.designpattern.mediator.text_001;

/**
 * @Description: 抽象同时类
 * @Author zx
 * @Date 2025/3/3 16:34
 * @Version 1.0
 */
public abstract class Colleague {

    private Mediator mediator;

    public Colleague(Mediator mediator) {
        this.mediator = mediator;
    }

    public Mediator getMediator() {
        return mediator;
    }

    // 同事间进行交互的抽象方法
    public abstract void exec(String key);
}
